<template>
  <el-container>
    <el-header style="height:40px">订单部署</el-header>
    <el-main>
      <el-table
        :data="tableData"
        border
        style="width: 100%"
      >
        <el-table-column
          fixed
          prop="orderName"
          :label="labelOrderName"
        />
        <el-table-column
          prop="key"
          :label="labelKey"
        />
        <el-table-column
          prop="path"
          :label="labelPath"
        />
        <el-table-column
          prop="status"
          :label="labelStatus"
        />
        <el-table-column
          fixed="right"
          :label="labelOperation"
        >
          <template slot-scope="scope" style="marginLeft:10px">
            <el-row>
              <el-col :offset="6">
                <el-button
                  size="mini"
                  type="success"
                  @click="handleEdit(scope.$index, scope.row)"
                >
                  部署
                </el-button>
              </el-col>
            </el-row>
          </template>
        </el-table-column>
      </el-table>
    </el-main>
  </el-container>
</template>

<script>
export default {

  data() {
    return {
      tableData: [{
        orderName: '出差申请',
        key: 'evection',
        path: 'bpmn/evection.bpmn',
        status: '已部署'
      }],
      labelOrderName: '订单名称',
      labelKey: '流程key',
      labelPath: '文件路径',
      labelStatus: '状态',
      labelOperation: '操作'
    }
  },
  methods: {
    handleEdit(index, row) {
      console.log(index, row)
    },
    handleDelete(index, row) {
      console.log(index, row)
    }
  }
}

</script>

<style scoped>
.el-header{
  font-size:18px;
  padding:0;
  color:#000;
  border-bottom:1px solid #666 ;

}

</style>
